package pl.devfest.work;

import pl.devfest.R;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class WorkPlanActivity extends TabActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.work_plan);

	TabHost tabHost = getTabHost();

	TabSpec routeSpec = tabHost.newTabSpec(getString(R.string.route));
	routeSpec.setIndicator(getString(R.string.route));

	Intent routeIntent = new Intent(this, RouteActivity.class);
	routeSpec.setContent(routeIntent);

	TabSpec CalendarSpec = tabHost.newTabSpec(getString(R.string.calendar));
	CalendarSpec.setIndicator(getString(R.string.calendar));

	Intent calendarIntent = new Intent(this, CalendarActivity.class);
	CalendarSpec.setContent(calendarIntent);

	tabHost.addTab(CalendarSpec);
	tabHost.addTab(routeSpec);
    }

}
